package com.lottery.obtainData;

import com.lottery.service.qiuqiu.accoutService.ManualCustomerService;
import com.lottery.utils.messageTube.MessageFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;


import javax.annotation.Resource;

//@Component
public class RebateTask {

	@Autowired
	private ManualCustomerService manualCustomerservice;

	@Resource
	private MessageFactory messageFactory;

	private final Logger logger = LoggerFactory.getLogger(this.getClass());

	public void rebate() {
		logger.debug("scheduling task rebate");
		try {
			//返点
			 manualCustomerservice.RebateService();
			//初始化信息通道
			messageFactory.InitMessagetube();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}